<?php

declare(strict_types=1);

namespace App\Mall\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property int $goods_id goods_id
 * @property int $spec_id spec_id
 * @property string $symbol 币种
 * @property string $price 售价
 */
class MallGoodsPrice extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'mall_goods_price';
    public bool $timestamps = false;

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'goods_id', 'spec_id', 'symbol', 'price'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'goods_id' => 'integer', 'spec_id' => 'integer', 'price' => 'decimal:2'];
}
